package com.qd.qx.widget;

import android.content.Context;
import android.widget.ImageView;

/**
 * Code is far away from bug with the animal protecting
 * Author：YS on 2018/10/19
 * Function：default
 */

public abstract class NineGridImageViewAdapter<T> {
    protected abstract void onDisplayImage(Context context, ImageView imageView, T t);

    protected ImageView generateImageView(Context context) {
        ImageView imageView = new ImageView(context);
        imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
        return imageView;
    }

    //这里可以添加你所需要的事件之类的方法
}
